<extend name="Public/base"/>

<block name="body">
<link rel="stylesheet" type="text/css" href="__STATIC__/datetimepicker/css/datetimepicker_blue.css">
 <script type="text/javascript" src="__STATIC__/datetimepicker/js/bootstrap-datetimepicker.min.js"></script>
    <script type="text/javascript" src="__STATIC__/datetimepicker/js/locales/bootstrap-datetimepicker.zh-CN.js"></script>
<script type="text/javascript" src="__JS__/jquery.nicescroll.js"></script>
<style type="text/css">
	.choosed{
		height: 100%;
	}
	.not-choosed{
		height: 100%;
	}
	.fl{
		float: left;
		margin:0 10px;
	}
	.well{
		background: #fff;
	}
	.date{
		width:220px;
		float:left;
	}
	</style>
<style>.input-group {width:50%}</style>
    <div class="main-title">
        <h2><eq name="_list.uid" value="">新建教师
			<else/> 编辑教师详细信息</eq></h2>
    </div>
        <form action="{:U()}" method="post" class="form-horizontal">
                
        
        <div class="form-item">
        <eq name="_list.uid" value="">

            <label class="item-label">用户名<span class="check-tips">（必填）</span></label>
            <div class="controls">
            	<!-- <span class="input-group-addon">{$school_short_name}_</span>
                <input type="text" class="text input-large" name="username" value=""> -->
			 <div class="input-group">
              <span class="input-group-addon">{:session('user_auth.school_short_name')}</span>
              <input type='text' name='teachercount' value='{$_list.teachercount_s}' class='form-control' />
			</div>
            </div>
				<else/>
            <!-- <label class="item-label">uid：{$_list.uid}</label> -->
            <input type='hidden' name='uid' value='{$_list.uid}' class='form-control' />
            <label class="item-label">学校名称：{$_list.schoolname}</label>
            <label class="item-label">分配情况：<eq name="_list.isdistribution" value="1">已分配
				<else/>未分配
				</eq></label>
			<label class="item-label">用户状态：<eq name="_list.status" value="1">正常
				<else/>已禁用
				</eq></label>
            <label class="item-label">最后登录时间：{$_list.last_login_time|time_format}</label>
                      
            <label class="item-label">用户名：{$_list.teachercount}</label>
				</eq>

            
            <div class="form-item">
            <label class="item-label">姓名<span class="check-tips">（必填）</span></label>
            <input type='text' name='teachername' value='{$_list.teachername}' class='form-control' />
            <input type='hidden' name='password' value='123456' class='form-control' />
            <label class="item-label">手机<span class="check-tips">（必填）</span></label>
            <input type='text' name='teacher_tel' value='{$_list.teacher_tel}' class='form-control' />
            <label class="item-label">职称</label>
            <select class="form-control" name="teacher_pro">
					<volist name="TEACHER_PRO" id="vo" key="k" >
					<option value = {$vo} <if condition="$_list['teacher_pro']==$vo">selected<else/></if>>{$vo}</option>
					</volist>
			</select>
            <label class="item-label">职务</label>
            <select class="form-control" name="teacher_title">
					<volist name="TEACHER_TITLE" id="vo" key="k" >
					<option value = {$vo} <if condition="$_list['teacher_title']==$vo">selected<else/></if>>{$vo}</option>
					</volist>
			</select>
            <label class="item-label">性别</label>
            <label class="radio-inline">
				  <input type="radio" name="sex" id="inlineRadio1" value="0" <if condition="$_list['sex']==0">checked<else/></if>> 男
				</label>
				<label class="radio-inline">
				  <input type="radio" name="sex" id="inlineRadio2" value="1" <if condition="$_list['sex']==1">checked<else/></if>> 女
				</label>
            <label class="item-label">出生年月</label>
           <input id="startDate" class="form-control dateTime " type="text" value="{$_list.birthday}" name="birthday" readonly/>
            <label class="item-label">所任课程</label>
            <select class="form-control" name="course">
					<volist name="TEACHER_COURSE" id="vo" key="k" >
					<option value = {$vo} <if condition="$_list['course']==$vo">selected<else/></if>>{$vo}</option>
					</volist>
			</select>
            
        </div>
</div>
        <div class="form-item">
            <button class="btn submit-btn ajax-post" id="submit" type="submit" target-form="form-horizontal">确 定</button>
            <button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
        </div>
    </form>
</block>



    




<block name="script">
    <script type="text/javascript">
        //导航高亮
        highlight_subnav('{:U('Teacher/index')}');
        $('#startDate').datetimepicker({
        	format: 'yyyy-mm-dd',
            language:  'zh-CN',
            weekStart: 1,
            todayBtn:  1,
            autoclose: 1,
            todayHighlight: 1,
            startView: 2,
            minView: 2,
            forceParse: 0
        });
    </script>
</block>
